package com.zhuang.yygh.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = "com.zhuang")
//在nacos中进行注册，不加该注解好像也行
@EnableDiscoveryClient
//开启feign服务（那么feign服务的自动装配就会生效，将带有@FeignClient的类扫描进容器中）
//指定扫描路径就可扫描到不同模块中的feign服务，需要引入了调用模块的依赖
@EnableFeignClients(basePackages = "com.zhuang")
public class ServiceUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceUserApplication.class, args);
    }

}
